package com.probox.common.core.enums;

public enum ServiceReturnEnum {
    return_1("return_1","商品质量问题"),
    return_2("return_2","包装破损"),
    return_3("return_3","商家发错货"),
    return_4("return_4","商品与描述不符"),
    return_5("return_5","其他");

    private ServiceReturnEnum(String k, String v) {
        this.setKey(k);
        this.setValue(v);
    }

    public static String getNameByKey(String key) {
        String rst = "";
        for(ServiceReturnEnum oe: ServiceReturnEnum.values()) {
            if (oe.getKey().equals(key)) {
                rst = oe.getValue();
            }
        }
        return rst;
    }

    private String key;
    private String value;

    public String getKey() {
        return key;
    }
    public void setKey(String key) {
        this.key = key;
    }
    public String getValue() {
        return value;
    }
    public void setValue(String value) {
        this.value = value;
    }
}
